#include <iostream>
#include <iomanip>
#include <string>

const int ArSize = 16;

int main()
{
	using namespace std;
	long long factorials[ArSize];
	factorials[0] = factorials[1] = 1LL;
	for (int i = 2; i < ArSize; i++)
	{
		factorials[i] = i * factorials[i - 1];
	}
	for (int i = 0; i < ArSize; i++)
	{
		cout << setw(2) << i << "! = " << factorials[i] << endl;
	}
	cout << "Enter a word : ";
	string word;
	cin >> word;
	for (int i = word.size{} -1; i >= 0; i--)
	{
		cout << word[i];
	}
	cout << endl;
	system("pause");
	return 0;
}